package com.ruoyi.storeExpend.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.storeExpend.domain.StoreExpend;
import org.apache.ibatis.annotations.Param;

/**
 * 商家消费明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
public interface StoreExpendMapper 
{
    /**
     * 查询商家消费明细
     * 
     * @param id 商家消费明细主键
     * @return 商家消费明细
     */
    public StoreExpend selectStoreExpendById(Long id);

    /**
     * 查询商家消费明细列表
     * 
     * @param storeExpend 商家消费明细
     * @return 商家消费明细集合
     */
    public List<StoreExpend> selectStoreExpendList(StoreExpend storeExpend);

    /**
     * 新增商家消费明细
     * 
     * @param storeExpend 商家消费明细
     * @return 结果
     */
    public int insertStoreExpend(StoreExpend storeExpend);

    /**
     * 修改商家消费明细
     * 
     * @param storeExpend 商家消费明细
     * @return 结果
     */
    public int updateStoreExpend(StoreExpend storeExpend);

    /**
     * 删除商家消费明细
     * 
     * @param id 商家消费明细主键
     * @return 结果
     */
    public int deleteStoreExpendById(Long id);

    /**
     * 批量删除商家消费明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStoreExpendByIds(Long[] ids);

    List<StoreExpend> getStoreExpendList(@Param("storeExpend") StoreExpend storeExpend, @Param("beginCreateTime")Date beginCreateTime, @Param("endCreateTime")Date endCreateTime);
}
